const homeModule = {
  namespaced: true,
  state() {
    return {
      counter: 100
    }
  },
  getters: {
    doubleCounter(state, getters, rootState, rootGetters) {
      return state.counter * 2
    }
  },
  mutations: {
    increase(state) {
      state.counter++
    }
  },
  actions: {
    increaseAction({ commit }) {
      commit('increase')
    }
  }
}

export default homeModule
